package com.financing.platform.util;

import java.util.HashMap;
import java.util.Map;

public class Dict {

	/**
	 * 产品发布中状态 需要审核
	 */
	public static final String pProductStatus_need_Verify = "1";

	/**
	 * 产品发布中状态  需要发布
	 */
	public static final String pProductStatus_need_public = "2";
	/**
	 * 产品发布中状态  需要发布   提交发布
	 */
	public static final String pProductStatus_need_public5 = "5";

	/**
	 * 产品未发布状态
	 */
	public static final String pPublicStatus_No_public = "1";

	/**
	 * 产品已发布状态
	 */
	public static final String pPublicStatus_Yes_public = "2";

	/**
	 * 产品下架
	 */
	public static final String pPublicStatus_undercarriage = "3";

	/**
	 * 产品下架
	 */
	public static final String pPublicStatus_delete = "4";

	/**
	 * 产品销售状体  已售罄
	 */
	public static final String pSaleStatus_end = "04";

	/**
	 * 权限授权
	 */
	public static final String accessEnable = "1";

	/**
	 * 产品成立
	 */
	public static final int order_status_product_set = 250;

	/**
	 * 到款
	 */
	public static final int order_status_to_section = 240;

	/**
	 * 产品预约成功
	 */
	public static final int order_status_success_per = 130;

	/**
	 * 产品预约失败
	 */
	public static final int order_status_fail_per = 140;

	/**
	 * 合同已寄出
	 */
	public static final int order_status_contract_mail = 210;

	/**
	 * 返佣
	 */
	public static final int order_status_rebate = 320;

	/**
	 * 后端财务返佣
	 */
	public static final int order_status_back_rebate = 321;

	/**
	 * 反佣已确认
	 */
	public static final int order_status_confirm_rebate = 330;

	/**
	 * 后端反佣已确认
	 */
	public static final int order_status_back_confirm_rebate = 331;

	/**
	 * 订单取消
	 */
	public static final int order_status_cancel = 999;

	/**
	 * 请求ID
	 */
	public static final String requestID = "requestID";

	/**
	 * 订单
	 */
	public static final String order = "order";

	/**
	 * 开关关
	 */
	public static final String switchOff = "0";

	/**
	 * 开关开
	 */
	public static final String switchOn="1";

	/**
	 * 结果成功
	 */
	public static final Integer result_success = 1;

	/**
	 * 结果失败
	 */
	public static final Integer result_error = 0;


	/**
	 * fa信息审核状态：审核未通过
	 */
	public static final String fa_status_success = "02";

	/**
	 * fa审核未通过
	 */
	public static final String fa_role_not_pass = "1";

	/**
	 * fa信息审核状态：审核成功
	 */
	public static final String fa_status_fail = "04";

	/**
	 * 数据中的主键
	 */
	public static final String id = "id";

	/**
	 * 请求处理结果
	 */
	public static final String result = "result";

	/**
	 * 评论记录删除
	 */
	public static final String discuss_status_delete = "02";

	/**
	 * 评论记录正常
	 */
	public static final String discuss_status_normal = "01";

	/**
	 * 产品评论记录正常
	 */
	public static final String project_comments_status_normal="01";

	/**
	 * 产品评论记录删除
	 */
	public static final String project_comments_status_delete="02";

	/**
	 * 评论类型：综合评论
	 */
	public static final String discuss_mixed_reviews = "00";

	/**
	 * 产品评论类型 平台
	 */
	public static final String project_comments_type_platform = "01";

	/**
	 * 消息类型  订单消息
	 */
	public static final String message_type_order = "02";

	/**
	 * 消息类型 产品消息
	 */
	public static final String message_type_project = "09";

	/**
	 * 消息类型 FA
	 */
	public static final String message_type_fa = "10";

	/**
	 * 记录正常
	 */
	public static final String status_normal = "01";

	/**
	 * 站内消息状态：未读
	 */
	public static final String message_note_status = "1";

	/**
	 * 信息实时发送
	 */
	public static final String message_type_now = "01";

	/**
	 * 信息定时发送
	 */
	public static final String message_type_after="02";

	/**
	 * 信息未发送
	 */
	public static final String message_status_not_send = "01";

	/**
	 * 信息发送中
	 */
	public static final String message_send_status_sending = "02";

	/**
	 *信息发送失败
	 */
	public static final String message_send_status_fail = "04";

	/**
	 * 信息发送成功
	 */
	public static final String message_send_status_success="03";

	/**
	 * 信息最大下发次数
	 */
	public static final Integer message_max_send_times = 3;

	/**
	 * 消息标题
	 */
	public static final String message_title = "title";

	/**
	 * 消息主体
	 */
	public static final String message_content = "content";

	/**
	 * 客户名称
	 */
	public static final String message_client_name="clientName";

	/**
	 * 订单金额
	 */
	public static final String message_amount = "amount";

	/**
	 * 产品名称
	 */
	public static final String message_project_name ="projectName";

	/**
	 * 机构产品销售类型  02:分销
	 */
	public static final String project_sale_type_all = "02";
	/**
	 * 机构产品销售类型  01:内销
	 */
	public static final String project_sale_type_own = "01";

	/**
	 *平台产品
	 */
	public static final int project_own_corp = 0;

	/**
	 * fa未审核通过
	 */
	public static final String fa_u_role = "99";

	/**
	 * 短信下发线程开关
	 */
	public static final String sms_send_switch = "smsSendSwitch";

	/**
	 * 邮件下发开关
	 */
	public static final String mail_send_switch = "mailSendSwitch";

	/**
	 * 短信下发成功
	 */
	public static final String sms_send_success = "1";

	/**
	 * 短信下发失败
	 */
	public static final String sms_send_fail  = "2";

	/**
	 * 产品DTO
	 */
	public static final String projectDTO = "projectDTO";

	/**
	 * 订单DTO
	 */
	public static final String orderVo = "orderVo";

	/**
	 * fa用户DTO
	 */
	public static final String faUserDTO = "faUserDTO";

	/**
	 * 红包状态  02:已经打开
	 */
	public static final String activitieGiftOpen = "02";

	/**
	 * fa注册信息有效性通过
	 */
	public static final String isValid_pass = "1";

	/**
	 * fa注册信息有效性未知
	 */
	public static final String isValid_unknown = "2";
	/**
	 * 账户明细，操作类型：01平台返佣入账，
	 */
	public final static String P_ACCOUNT_OPERATE_REBATE = "01";

	/**
	 * 账户明细，操作类型：02活动赠送入账
	 */
	public final static String P_ACCOUNT_OPERATE_ACTIVITY = "02";
	/**
	 * 账户明细，操作类型：03提现操作
	 */
	public final static String P_ACCOUNT_OPERATE_CASH = "03";

	/**
	 * 账户明细，操作类型：04系统扣除
	 */
	public final static String P_ACCOUNT_OPERATE_SYS_DEDUCE = "04";
	/**
	 * 账户明细，操作类型：05系统冻结
	 */
	public final static String P_ACCOUNT_OPERATE_SYS_FREEZE = "05";
	/**
	 * 账户明细，操作类型：06提现成功
	 */
	public final static String P_ACCOUNT_OPERATE_CASH_SUCCESS = "06";
	/**
	 * 账户明细，操作类型：07提现失败
	 */
	public final static String P_ACCOUNT_OPERATE_CASH_FAIL = "07";

	/**
	 * 账户明细类型：进账
	 */
	public final static String P_ACCOUNT_DETAIL_TYPE_INPUT = "01";

	/**
	 * 账户明细类型：出账
	 */
	public final static String P_ACCOUNT_DETAIL_TYPE_OUTPUT = "02";

	/**
	 * 账户明细，操作状态：：01成功
	 */
	public final static String P_ACCOUNT_OPERATE_STATUS_SUCCESS = "01";

	/**
	 * 账户明细，操作状态：02失败
	 */
	public final static String P_ACCOUNT_OPERATE_STATUS_FAIL = "02";

	/**
	 * 提现状态-提现中
	 */
	public final static String WITHDRAW_STATUS_ING = "01";

	/**
	 * 提现状态-操作成功
	 */
	public final static String WITHDRAW_STATUS_SUCCESS = "02";
	/**
	 * 提现状态-操作失败
	 */
	public final static String WITHDRAW_STATUS_FAIL = "03";

	/**
	 * 黑名单操作类型  1：加入拉黑 
	 */
	public final static String BLACKLIST_STATUS_JOIN= "1";
	/**
	 * 黑名单操作类型  2：移除拉黑 
	 */
	public final static String BLACKLIST_STATUS_REMOVE= "2";
	/**
	 * FA用户状态01:正常
	 */
	public final static String FA_USER_STATUS_NORMAL= "01";
	/**
	 * FA用户状态  02：禁用
	 */
	public final static String FA_USER_STATUS_DISABLE= "02";
	/**
	 * FA用户状态  03：注销
	 */
	public final static String FA_USER_STATUS_CANCELLATION= "03";
	/**
	 * FA用户状态  04 黑名单 
	 */
	public final static String FA_USER_STATUS_BLACK = "04";

	/**
	 * 注册验证码短信广告
	 */
	public final static String regSmsAd = "regSmsAd";

	/**
	 * 注册成功后密码短信广告
	 */
	public final static String regPasswdSmsAd = "regPasswdSmsAd";

	/**
	 * 重置密码短信广告
	 */
	public final static String passwdRsetSmsAd = "passwdRsetSmsAd";

	/**
	 * 修改密码短信广告
	 */
	public final static String changePwdSmsAd = "changePwdSmsAd";

	/**
	 * 银行卡绑定验证码广告
	 */
	public final static String bindBankCardSmsAd = "bindBankCardSmsAd";

	/**
	 * FA审核通过短信广告
	 */
	public final static String faVerifyPassSmsAd = "faVerifyPassSmsAd";

	/**
	 * FA审核未通过短信广告
	 */
	public final static String faVerifyNoPassSmsAd = "faVerifyNoPassSmsAd";

	/**
	 * SHOP审核通过短信广告
	 */
	public final static String shopVerifyPassSmsAd = "shopVerifyPassSmsAd";

	/**
	 * SHOP审核未通过短信广告
	 */
	public final static String shopVerifyNoPassSmsAd = "shopVerifyNoPassSmsAd";

	/**
	 * 订单申请短信广告
	 */
	public final static String orderApplySmsAd = "orderApplySmsAd";

	/**
	 * 订单预约成功
	 */
	public final static String order_130 = "order130";

	/**
	 * 订单预约失败
	 */
	public final static String order_140 = "order140";

	/**
	 * 合同已寄出
	 */
	public final static String order_210 = "order210";

	/**
	 * 到款确认
	 */
	public final static String order_240 = "order240";

	/**
	 * 订单返佣
	 */
	public final static String order_320 = "order320";

	/**
	 * 订单取消
	 */
	public final static String order_999 = "order999";

	/**
	 * 产品成立
	 */
	public final static String productSet = "productSet";

	/**
	 * FA审核邮件通知开关
	 */
	public final static String mail_fa_need_verify = "mailFaNeedVerify";

	/**
	 * FA审核未通过邮件开关
	 */
	public final static String mail_fa_verify_fail = "mailFaVerifyFail";

	/**
	 * FA审核通过邮件开关
	 */
	public final static String mail_fa_verify_success = "mailFaVerifySuccess";

	/**
	 * 产品推荐邮件开关
	 */
	public final static String mail_product_publish = "mailProductPublish";

	/**
	 * 订单预约发送产品组邮件开关
	 */
	public final static String mail_order_per = "mailOrderPer";

	/**
	 * 外部产品发送邮件开关
	 */
	public final static String out_product_email = "outProductEmail";

	/**
	 * 临时订单预约发送产品组邮件开关
	 */
	public final static String mail_order_per_tmp = "mailOrderPerTmp";

	/**
	 * fa需要审核的邮件模板
	 */
	public final static String mail_template_fa_need_verify = "01";

	/**
	 * fa审核通过邮件模板
	 */
	public final static String mail_template_fa_verify_success = "02";

	/**
	 * fa审核未通过邮件模板
	 */
	public final static String mail_template_fa_verify_fail = "03";

	/**
	 * 订单申请邮件模板(发产品部门)
	 */
	public final static String mail_template_order_per = "04";

	/**
	 * 临时订单申请邮件模板(发产品部门)
	 */
	public final static String mail_template_order_per_tmp = "07";

	/**
	 * 产品发布邮件模板
	 */
	public final static String mail_template_product_publish = "08";

	/**
	 * 邮件主题
	 */
	public final static String mail_subject = "subject";

	/**
	 * 邮件内容
	 */
	public final static String mail_content = "content";

	public final static String ad_mail = "09";

	/**
	 * 订单权限表fp_manager_order 表中，订单类型、产品类型
	 */
	public final static String simuOrderType = "03";
	public final static String simuProjectType = "05";

	public final static String xintuoOrderType = "01";
	public final static String xintuoProjectType = "02";

	public final static String ziguanOrderType = "02";
	public final static String ziguanProjectType = "03";

	public final static String pevcProjectType="06";
	public final static String pevcOrderType="06";

	// 订单流程改造
	public final static int department_name_qudao = 1;
	public final static int department_name_chanpin = 2;
	public final static int department_name_caiwu = 3;
	public final static HashMap<String, String> qudao_orderCtrType_status = new HashMap<String, String>() {{
		put( "01" , "110,130,210,220,240,250,310,320,330" );
		put( "02" , "350,360" );
		put( "03" , "241,311,321" );
		put( "04" , "888" );
		put( "05" , "110,120,130,210,220,240,250,310,320,330" );
		put( "06" , "350,360" );
		put( "07" , "241,311,321" );
		put( "08" , "888" );
	}};
	public final static HashMap<String, String> chanpin_orderCtrType_status = new HashMap<String, String>() {{
		put( "01" , "220,240,250,310,320,330" );
		put( "02" , "350,360" );
		put( "03" , "241,311,321" );
		put( "04" , "888" );
		put( "05" , "220,240,250,310,320,330" );
		put( "06" , "350,360" );
		put( "07" , "241,311,321" );
		put( "08" , "888" );
		put( "09" , "120" );
	}};
	public final static HashMap<String, String> caiwu_orderCtrType_status = new HashMap<String, String>() {{
		put( "05" , "310,320,330" );
		put( "06" , "350,360" );
		put( "07" , "241,311,321" );
	}};

	/**
	 * 极光推送系统消息
	 */
	public final static String jPushMessageType_system = "01";

	/**
	 * 极光推送运营消息
	 */
	public final static String jPushMessageType_operate = "02";

	public static class UserContractDTO{
		public static final String STATUS_CONTRACT_01 = "01"; //待申请
		public static final String STATUS_CONTRACT_02 = "02"; //待处理
		public static final String STATUS_CONTRACT_03 = "03"; //待寄出
		public static final String STATUS_CONTRACT_04 = "04"; //待回收
		public static final String STATUS_CONTRACT_05 = "05"; //已回收
	}
	public  class OrderStatusDTO{

		//前端 结佣状态
		public static final int STATUS_110 = 110; //预约中、待审核
		public static final int STATUS_120 = 120; //成交价待审核
		public static final int STATUS_130 = 130; //审核通过、待打款
		public static final int STATUS_140 = 140; //审核不通过、预约失败
		public static final int STATUS_220 = 220; //已打款、待确认
		public static final int STATUS_240 = 240; //确认打款、待佣金到账
		public static final int STATUS_310 = 310; //佣金到账、待结佣
		public static final int STATUS_320 = 320; //已结佣、待确认
		public static final int STATUS_330 = 330; //结佣完成
		public static final int STATUS_360 = 360; //交易结束,
		public static final int STATUS_888 = 888; //订单失败
		public static final int STATUS_999 = 999; //取消订单

		//后端 结佣状态

		public static final int STATUS_back_231 = 231; //审核不通过
		public static final int STATUS_back_241 = 241; //后端结佣、待审核
		public static final int STATUS_back_261 = 261; //后端佣金审核通过
		public static final int STATUS_back_311 = 311; //佣金到账、待结佣
		public static final int STATUS_back_321 = 321; //已结佣、待确认
		public static final int STATUS_back_331 = 331; //结佣完成
		public static final int STATUS_back_361 = 361; //无后端结佣



	}

	public class OrderCostDTO{
		//费用类型

		public static final String STATUS_QD_JY   	= "QD_JY"; 		//前端-结佣
		public static final String STATUS_QD_SYJK 	= "QD_SYJK"; 	//前端-上游结款
		public static final String STATUS_QD_CWJY 	= "QD_CWJY"; 	//前端-财务结佣

		public static final String STATUS_HD_JY 	= "HD_JY"; 		//后端-结佣
		public static final String STATUS_HD_SYJK 	= "HD_SYJK"; 	//后端-上游结款
		public static final String STATUS_HD_CWJY 	= "HD_CWJY"; 	//后端-财务结佣
		public static final String STATUS_HD_HDFH 	= "HD_HDFH"; 	//后端-后端分红
		public static final String STATUS_HD_TX   	= "HD_TX"; 		//后端-贴息
		public static final String STATUS_HD_SCBT 	= "HD_SCBT";  	//后端-市场补贴
		public static final String STATUS_HD_OTHER 	= "HD_OTHER"; 	//后端-其他

		public static final String STATUS_HD_JY_INFO 	= "HD_JY,HD_HDFH,HD_TX,HD_SCBT,HD_OTHER"; 	//后端-信息

	}
	//前端key 对应订单状态
	public final static HashMap<String, String> frontKey_order_status = new HashMap<String, String>() {{
		put( "yyz" , "110,120,121,122,123,124" );					//渠道-预约中
		put( "ddk" , "130,210" );									//渠道-待打款
		put( "qddjy" , "220,240,241,250,310,311,312,313,314,320" );	//渠道-前端待结佣
		put( "jieywc" , "330,331,350" );							//渠道-产品-结佣成功
		put( "jiaoywc" , "360" );									//渠道-产品-交易完成
		put( "ddsb" , "888,140,999" );								//渠道-产品-失败订单
		put( "dqrdk" , "220" );										//产品-待确认打款
		put( "dqrjy" , "240,241,250,310,311,320" );					//产品-待确认结佣
		put( "dshdd" , "120,241" );									//产品-待审核
		put( "dshhddd" , "241" );									//渠道-待审核后端订单
		put( "djyhddd" , "261,311,321" );							//渠道-待结佣后端订单
		put( "wchddd" , "331" );									//渠道-完成结佣后端订单
		put( "hdfydd" , "231,241,261,311,321" );					//产品-后端代结佣订单


		//财务
		put( "djy" , "310,320" );										//财务-待结佣
		put( "jydqr" , "330" );											//财务-结佣完成
		put( "hddjy" , "311,312,313,314,321" );							//财务-后端待结佣
		put( "hdjydqr" , "331" );										//财务-后端结佣完成
	}};

	//前端页面-对于key
	public final static HashMap<String, String> frontPage_key= new HashMap<String, String>() {{

		//put( "qd_ywcdd" , "jiaoywc,jieywc" );//渠道-已完成订单
		//put( "ddsb" , "ddsb" );//订单失败
		put( "qd_wddd" , "yyz,ddk,qddjy,jieywc,jiaoywc,ddsb" );// 渠道 -我的订单
		put( "qd_hdfydd" , "dshhddd,djyhddd,wchddd" );//渠道-后端费用订单


		//put( "cp_ywcdd" , "jieywc,jiaoywc" );// 产品 -已完成订单
		put( "cp_wddd" , "dqrdk,dqrjy,jieywc,jiaoywc,ddsb" );// 产品 -我的订单
		put( "cp_dshdd" , "dshdd" );// 产品 -待审核订单
		put( "cp_hdfydd" , "hdfydd,wchddd" );// 产品 -后端费用订单

		put( "cw_wddd" , "djy,jydqr,jiaoywc" );// 财务 -前端订单
		put( "cw_hdfydd" , "hddjy,hdjydqr" );// 财务 -后端订单

	}};

	//前端页面-1标识前端、2后端 、3 前后
	public final static HashMap<String, String> frontPage_isBack= new HashMap<String, String>() {{

		put( "qd_wddd" , "1" );// 渠道 -我的订单
		put( "qd_hdfydd" , "2" );//渠道-后端费用订单

		//put( "qd_ywcdd" , "1" );//渠道-已完成订单
		//put( "ddsb" , "1" );//订单失败

		put( "cp_wddd" , "1" );// 产品 -我的订单
		put( "cp_dshdd" , "3" );// 产品 -待审核订单

		//put( "cp_ywcdd" , "1" );// 产品 -已完成订单

		put( "cp_hdfydd" , "2" );// 产品 -后端费用订单

		put( "cw_wddd" , "1" );// 财务 - 前端订单
		put( "cw_hdfydd" , "2" );// 财务 - 后端订单
	}};

}
